<!doctype html>
<html>
<head>
<title>编辑</title>
    <?php $this->load->module('admin/index/page_header');?>
</head>
<body>
<div class="wrap">
	<div id="home_toptip"></div>
	<div class="nav">
        <ul>
            <li><a href="<?php echo $index_url;?>">列表</a></li> 
            <li class="current"><a href="javascript:void(0)">编辑</a></li>    
        </ul>
    </div>
    <div class="table_full">
	    <form method="post" class="formvalidate" action="<?php echo $form_post;?>" name="frm">
			<div class="table_full">
				<table class="tab_label" width="100%" id="jiben_config">
					<col class="th" />
	                <col/>
		            <tbody>
		                <tr>
		                	<th>类型</th>
		                	<td>
		                		<select name="Form[sort]" style="width:150px;">
		                			<option value="1" <?php if($row['sort']==1)echo 'selected'?>>票务</option>
		                			<option value="2" <?php if($row['sort']==2)echo 'selected'?>>保险</option>
		                			<option value="3" <?php if($row['sort']==3)echo 'selected'?>>地接</option>
		                			<option value="4" <?php if($row['sort']==4)echo 'selected'?>>领馆</option>
		                			<option value="5" <?php if($row['sort']==5)echo 'selected'?>>领队</option>
		                			<option value="6" <?php if($row['sort']==6)echo 'selected'?>>导游</option>
		                			<option value="7" <?php if($row['sort']==7)echo 'selected'?>>购物</option>
		                			<option value="8" <?php if($row['sort']==8)echo 'selected'?>>餐馆</option>
		                			<option value="9" <?php if($row['sort']==9)echo 'selected'?>>酒店</option>
		                			<option value="10" <?php if($row['sort']==10)echo 'selected'?>>景区</option>
		                			<option value="11" <?php if($row['sort']==11)echo 'selected'?>>车辆</option>
		                			<option value="12" <?php if($row['sort']==12)echo 'selected'?>>其他</option>
		                		</select>
		                	</td>
		                </tr>
		                <tr>
		                    <th><span class="spanMsg">*</span>名称：</th>
		                    <td><input type="text" value="<?php echo $row['name']?>" name="Form[name]" class="input rounded" size="60" validate="{required:true,remote:'<?php echo $check_name;?>'}"/></td>
		                </tr>
		                <tr>
		                    <th>联系人：</th>
		                    <td><input type="text" value="<?php echo $row['link_name']?>" name="Form[link_name]" class="input rounded" />(导游，领队可不填)</td>
		                </tr>
		                <tr>
		                    <th>手机：</th>
		                    <td><input type="text" value="<?php echo $row['mobile']?>" name="Form[mobile]" class="input rounded" /></td>
		                </tr>
		                <tr>
		                    <th>电话：</th>
		                    <td><input type="text" value="<?php echo $row['tel']?>" name="Form[tel]" class="input rounded" /></td>
		                </tr>
		                <tr>
		                    <th>传真：</th>
		                    <td><input type="text" value="<?php echo $row['fax']?>" name="Form[fax]" class="input rounded" /></td>
		                </tr>
		                <tr>
		                    <th>email：</th>
		                    <td><input type="text" value="<?php echo $row['email']?>" name="Form[email]" class="input rounded" /></td>
		                </tr>
		                <tr>
		                	<th>交易方式：</th>
		                	<td><input type="radio" name="pay_type" value="1" <?php if($row['pay_type']==1)echo 'checked'?>>现金&nbsp;
		                	    <input type="radio" name="pay_type" value="2" <?php if($row['pay_type']==2)echo 'checked'?>>签单&nbsp;
		                	    <input type="radio" name="pay_type" value="3" <?php if($row['pay_type']==3)echo 'checked'?>>支票&nbsp;
		                	    <input type="radio" name="pay_type" value="4" <?php if($row['pay_type']==4)echo 'checked'?>>汇款&nbsp;</td>
		                </tr>
		                <tr>
		                	<th>开户行：</th>
		                    <td><input type="text" value="<?php echo $row['bank']?>" name="Form[bank]" class="input rounded" /></td>
		                </tr>
		                <tr>
		                	<th>账号：</th>
		                    <td><input type="text" value="<?php echo $row['bank_account']?>" name="Form[bank_account]" class="input rounded" /></td>
		                </tr>
		                <tr>
		                    <th>简介：</th>
		                    <td><textarea name="Form[remark]" rows="60" cols="130"><?php echo $row['remark']?></textarea></td>
		                </tr>
		            </tbody>
	        </table>    
			</div>
			<div class="btn_wrap">
		        <div class="btn_wrap_pd">
		            <input type="hidden" name="id" value="<?php echo $row['id']?>" />
		            <button type="submit" class="btn btn_submit J_ajax_submit_btn">提交</button>
		        </div>
	        </div>
	    </form>
    </div>
</div>
</body>
</html>